export interface ResponseData {
  code: number,
  message: string,
  ok: boolean
}

export interface User {
  id?: number,
  createTime?: string,
  updateTime?: string,
  username?: string,
  password?: string,
  name?: string,
  phone?: null,
  roleName?: string,
}

export type Records = User[]

export interface userResponseData extends ResponseData {
  data: {
    records: Records,
    total: number,
    size: number,
    current: number,
    pages: number
  }
}

export interface RoleData {
  id?: number,
  createTime?: string,
  updateTime?: string,
  roleName: string,
  remark: null
}

export type AllRole = RoleData[]

export interface AllRoleResponseData extends ResponseData {
  data: {
    assignRoles: AllRole,
    allRolesList: AllRole,
  }
}

export interface SetRoleData {
  roleIdList: number[],
  userId: number
}